import 'package:massagist/generated/json/base/json_convert_content.dart';
import 'package:massagist/models/massage_model_entity.dart';

MassageModelEntity $MassageModelEntityFromJson(Map<String, dynamic> json) {
	final MassageModelEntity massageModelEntity = MassageModelEntity();
	final String? image = jsonConvert.convert<String>(json['image']);
	if (image != null) {
		massageModelEntity.image = image;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		massageModelEntity.name = name;
	}
	final String? pay = jsonConvert.convert<String>(json['pay']);
	if (pay != null) {
		massageModelEntity.pay = pay;
	}
	final String? time = jsonConvert.convert<String>(json['time']);
	if (time != null) {
		massageModelEntity.time = time;
	}
	final String? contant = jsonConvert.convert<String>(json['contant']);
	if (contant != null) {
		massageModelEntity.contant = contant;
	}
	return massageModelEntity;
}

Map<String, dynamic> $MassageModelEntityToJson(MassageModelEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['image'] = entity.image;
	data['name'] = entity.name;
	data['pay'] = entity.pay;
	data['time'] = entity.time;
	data['contant'] = entity.contant;
	return data;
}